// src/utils/contract.js
import web3 from './web3';
import DataTraceArtifact from '../../contracts/build/contracts/DataTrace.json';

const contractAddress = '0xd57ffe01803679d6dccc04204532954b51020bec4fe5841b7972c9f2aabc0853'; // 替换为你的合约地址
const contractAbi = DataTraceArtifact.abi;

const DataTraceContract = new web3.eth.Contract(contractAbi, contractAddress);

export default DataTraceContract;